-
Notifications
You must be signed in to change notification settings - Fork 12.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
syntax: add ast::ItemKind::MacroDef
, simplify hygiene info
#40220
Conversation
cc #39412 |
☔ The latest upstream changes (presumably #39927) made this pull request unmergeable. Please resolve the merge conflicts. |
☔ The latest upstream changes (presumably #40202) made this pull request unmergeable. Please resolve the merge conflicts. |
dc42522
to
9057c8d
Compare
@bors: r+ |
📌 Commit 9057c8d has been approved by |
🔒 Merge conflict |
@bors: retry |
🔒 Merge conflict |
@bors: retry |
🔒 Merge conflict |
@bors: retry |
(oops) @bors: r+ |
💡 This pull request was already approved, no need to approve it again.
|
📌 Commit 9057c8d has been approved by |
@bors: retry |
9057c8d
to
8c98996
Compare
@bors: r=nrc |
📌 Commit 8c98996 has been approved by |
Rollup of 38 pull requests - Successful merges: #39202, #39820, #39918, #39921, #40092, #40146, #40199, #40225, #40239, #40257, #40259, #40261, #40277, #40278, #40287, #40297, #40311, #40315, #40319, #40324, #40336, #40340, #40344, #40345, #40367, #40369, #40372, #40373, #40379, #40385, #40386, #40389, #40400, #40404, #40410, #40422, #40423, #40424 - Failed merges: #40220, #40329, #40426
Rollup of 38 pull requests - Successful merges: #39202, #39820, #39918, #39921, #40092, #40146, #40199, #40225, #40239, #40257, #40259, #40261, #40277, #40278, #40287, #40297, #40311, #40315, #40319, #40324, #40336, #40340, #40344, #40345, #40367, #40369, #40372, #40373, #40379, #40385, #40386, #40389, #40400, #40404, #40410, #40422, #40423, #40424 - Failed merges: #40220, #40329, #40426
⌛ Testing commit 8c98996 with merge 223844a... |
💔 Test failed - status-appveyor |
… On Sat, Mar 11, 2017 at 9:00 AM, bors ***@***.***> wrote:
💔 Test failed - status-appveyor
<https://ci.appveyor.com/project/rust-lang/rust/build/1.0.2342>
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#40220 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAD95INIAj8xo6Y54LqMqWe9AQUgapZjks5rkrcGgaJpZM4MRtJj>
.
|
syntax: add `ast::ItemKind::MacroDef`, simplify hygiene info This PR - adds a new variant `MacroDef` to `ast::ItemKind` for `macro_rules!` and eventually `macro` items, - [breaking-change] forbids macro defs without a name (`macro_rules! { () => {} }` compiles today), - removes `ast::MacroDef`, and - no longer uses `Mark` and `Invocation` to identify and characterize macro definitions. - We used to apply (at least) two `Mark`s to an expanded identifier's `SyntaxContext` -- the definition mark(s) and the expansion mark(s). We now only apply the latter. r? @nrc
☀️ Test successful - status-appveyor, status-travis |
This PR
MacroDef
toast::ItemKind
formacro_rules!
and eventuallymacro
items,macro_rules! { () => {} }
compiles today),ast::MacroDef
, andMark
andInvocation
to identify and characterize macro definitions.Mark
s to an expanded identifier'sSyntaxContext
-- the definition mark(s) and the expansion mark(s). We now only apply the latter.r? @nrc